<template>
  <div class="recommendsOut">
    <div v-for="item in recommends" :key="item.index" class="recommendItem">
      <a href="item.link">
        <img :src="item.image" alt=""/>
        <div>{{ item.title }}</div>
      </a>  
    </div>  
  </div>
</template>

<script>
export default {
  name:"HomeRecommends",
  props:{
    recommends:{
      type: Array,
      default(){
        return []
      }
    }
  }
}
</script>

<style scoped>
  .recommendsOut{
    display: flex;
    text-align: center;
    font-size: 12px;
    margin: 10px 0 10px;
  }

  .recommendItem{
    flex: 1;
  }

  .recommendItem img{
    width: 65px;
    height: 65px;
    margin-bottom: 10px;
  }

</style>